sampler OriginalSampler : register(s0);

float Threshold = 0.5;

float4 PixelShader(float2 texCoord : TEXCOORD0) : COLOR0
{
	float4 color = tex2D(OriginalSampler, texCoord);
	if(color.r > Threshold)
		return float4(1, 1, 1, 1);
	else
		return float4(0,0,0,1);
}

technique BlackAndWhite
{
    pass Main
    {
        PixelShader = compile ps_2_0 PixelShader();
    }
}